﻿namespace Server.Logic.Common.Utils
{
    public static class ResponseMessageExtensions
    {
        public static Task<int> PickCode<T>(this Task<T> message) where T : IResponse
        {
            return message.ContinueWith(t => t.Result.ErrorCode);
        }
    }
}